package com.zn.util;

import java.util.Arrays;
import java.util.List;
import java.util.TimeZone;

/**
 * Created by 尹佳威 on 2018/7/9.
 * 静态常量类
 */
public class Constant {
    public static final TimeZone DEFAULT_TIMEZONE = TimeZone.getTimeZone("GMT+8:00");
    public static final String SMS_BEFROM="SMS:";
    public static final String RESSET_PWD_BEFROM="RESSET-PWD-SMS:";
    public static final String RETRIEVE_ACCOUNT_SMS="RETRIEVE-ACCOUNT-SMS:";
    public static final String CUSTOMER_INCR_NUM="CUSTOMER-INCR-NUM:";
    public static final String SOCKET_CONNECT_NUM="SOCKET_CONNECT_NUM";
    public static final String CUSTOMER_TOKEN_BEFROM="TOKEN:";
    public static final String MAIN_CONTRACT_KEY="MAIN-CONTRACT-LIST";
    public static final String TRADING_NOTIFY_CHANNEL="TRADING_NOTIFY_CHANNEL";
    public static final String REFER_MD_NOTIFY_CHANNEL="REFER_MD_NOTIFY_CHANNEL";
    public static final String CUSTOMER_MESSAGE_CHANNEL="CUSTOMER-MESSAGE-CHANNEL";
    public static final String UPDATE_AGREEMENT_PIC_CHANNEL="UPDATE-AGREEMENT-PIC-CHANNEL";
    public static final String BESTSIGN_ASYNCHRONOUS_NOTIFICATION="BESTSIGN-ASYNCHRONOUS-NOTIFICATION";
    public static final String MAIN_CONTRACT_CHANNEL="MAIN_CONTRACT_CHANNEL";
    public static final String PAY_METHOD_KEY_QUICK="PAY-METHOD-KEY:QUICK";
    public static final String PAY_METHOD_KEY_GATEWAY="PAY-METHOD-KEY:GATEWAY";
    /*****************************SOCKET推送Begin**********************************/
    /**行情推送**/
    public static final Integer TICK=1;
    /**报单推送**/
    public static final Integer TRADE_ORDER=2;
    /**成交推送**/
    public static final Integer DEAL_ORDER=3;
    /**参考行情推送**/
    public static final Integer ETF=4;
    /**现手推送**/
    public static final Integer NOW_VOLUME=5;
    /**消息推送**/
    public static final Integer MESSAGE=6;
    /**上上签注册结果推送**/
    public static final Integer BESTSIGN_REGISTER=7;
    /**报单过程状态推送**/
    public static final Integer REPORT_PROCESS_ORDER=8;
    public static final String CHANNEL_MAP_NOW_VOLUME="CHANNEL_MAP_NOW_VOLUME";
    /*****************************SOCKET推送End**********************************/
    public static final String ORDER_NO_LOCA="ORDER_NO_LOCA:";
    public static final String PAY_NO_LOCA="PAY_NO_LOCA:";
    public static final String FUTURE_BUSINESS="FUTURE-BUSINESS";
    public static final String ORDER_REF="ORDER-REF:";
    public static final String FUTURE_CUSTOMER_FLOW="FUTURE-CUSTOMER-FLOW";
    /**修改涨跌幅用的channel**/
    public static final String UPDATE_CHG_CHANNEL="UPDATE_CHG_CHANNEL";
    /**监听socketInfo信息变更**/
    public static final String UPDATE_SOCKET_INFO_CHANNEL = "UPDATE-SOCKET-INFO-CHANNEL";
    public static final String TRADE_PASSWORD_REGEX="^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{6,24}$";
    /******************************处理幂等性问题Begin*********************************/
    /**处理幂等性问题Key 线下充值接口**/
    public static final String IDEMPOTENCY_UNDERLINERECHARGE="IDEMPOTENCY-UNDERLINERECHARGE:";
    /**处理幂等性问题 开仓接口**/
    public static final String IDEMPOTENCY_REQSOPENREPORTORDER="IDEMPOTENCY-REQSOPENREPORTORDER:";
    /**r处理幂等性问题 平仓仓接口**/
    public static final String IDEMPOTENCY_REQSCLOSEREPORTORDER="IDEMPOTENCY-REQSCLOSEREPORTORDER:";
    /******************************处理幂等性问题END*********************************/

    /******************************K线Begin*********************************/
    /**正在进行中的一分钟K线**/
    public static final Integer UNDERWAY_KLINE_ONE_MIN=1;
    /**正在进行中的五分钟K线**/
    public static final Integer UNDERWAY_KLINE_FIVE_MIN=2;
    /**正在进行中的十五分钟K线**/
    public static final Integer UNDERWAY_KLINE_FIFTEEN_MIN=3;
    /**正在进行中的三十分钟K线**/
    public static final Integer UNDERWAY_KLINE_THIRTY_MIN=4;
    /**正在进行中的一小时K线**/
    public static final Integer UNDERWAY_KLINE_ONE_HR=5;
    /**正在进行中的四小时K线**/
    public static final Integer UNDERWAY_KLINE_FOUR_HR=6;
    /**正在进行中的日K线**/
    public static final Integer UNDERWAY_KLINE_DAY=7;
    /******************************K线End*********************************/

    /******************************MongoDbKlineBegin*********************************/
    /**一分钟K线表**/
    public static final String QUOTATIONS_KLINE_ONE_MIN="quotations_kline_one_min_";
    /**五分钟K线**/
    public static final String QUOTATIONS_KLINE_FIVE_MIN="quotations_kline_five_min_";
    /**十五分钟K线**/
    public static final String QUOTATIONS_KLINE_FIFTEEN_MIN="quotations_kline_fifteen_min_";
    /**三十分钟线**/
    public static final String QUOTATIONS_KLINE_THIRTY_MIN="quotations_kline_thirty_min_";
    /**一小时线**/
    public static final String QUOTATIONS_KLINE_ONE_HR="quotations_kline_one_hr_";
    /**四小时K线**/
    public static final String QUOTATIONS_KLINE_FOUR_HR="quotations_kline_four_hr_";
    /**日K线**/
    public static final String QUOTATIONS_KLINE_DAY="quotations_kline_day_";
    /**周线**/
    public static final String QUOTATIONS_KLINE_WEEK="quotations_kline_week_";

    /**成交明细寸的Connection market_trade_detail_201901_2018-12-29**/
    public static final String MARKET_TRADE_DETAIL="market_trade_detail_";
    /******************************MongoDbKlineEnd*********************************/

    /**********************************50ETF使用BEGIN*******************************************/
    public static final String SINA_DATA_DELIVERY_DAY="SINA-DATA-DELIVERY-DAY";
    /************************************new****************************************************/
    public static final String TARGET_CODE_LIST="TARGET-CODE-LIST";
    public static final String INSTRUMENT_MONTH_SET="INSTRUMENT-MONTH-SET:";
    public static final String EXECS_PRICE_SET="EXECS-PRICE-SET:";
    public static final String OPTION_SYMBOL_INFO="OPTION-SYMBOL-INFO:";
    public static final String OPTION_TICKL_INFO="OPTION-TICK-INFO:";
    public static final String TRADE_DATE_INFO="TRADE-DATE-INFO:";
    public static final String DATE_OF_TRANSACTION="DATE-OF-TRANSACTION";
    public static final String BUSINESSUNIQUE="BUSINESSUNIQUE";
    public static final String PREVENTREPEAT_CUSTOMERTEL="PREVENTREPEAT-CUSTOMERTEL:";
    public static final String PREVENTREPEAT_CUSTOMERID="PREVENTREPEAT-CUSTOMERID:";
    public static final String DISTINCT_INSTRUMENT="DISTINCT-INSTRUMENT:";
    public static final String SINA_REFER_MD_INFO="SINA-REFER-MD-INFO";
    public static final String SINA_REFER_MD_LIST="SINA-REFER-MD-LIST";
    public static final String INSTRUMENT_CODE_INFO="INSTRUMENT-CODE-INFO:";
    public static final String QUICK_RECHARGE_AMOUNT_SET="QUICK-RECHARGE-AMOUNT-SET";
    public static final String SHANG_SHANG_QIAN_TASKID="SHANG-SHANG-QIAN-TASKID";
    public static final String C_ADDRESS="C-ADDRESS";
    public static final List<String> MONGODB_INSERT_IP = Arrays.asList("192.168.10.223", "172.19.103.70", "172.19.103.59");
    /**ctp期货 1， ctp期权 2， Qwin期权 3，Ql期权 4**/
    public static final String CTP_OPTION_SERVER="2";
    public static final String QWIN_OPTION_SERVER="3";
    public static final String QL_OPTION_SERVER="4";
    /**对冲单状态  0-开启 1-关闭**/
    public static final String HEDGING_STATUS="HEDGING-STATUS";
    /**普通报单**/
    public static final Integer ORDINARY_ORDER_FLAG=0;
    /**对冲单**/
    public static final Integer HEDGING_ORDER_FLAG=1;
    /**跟单订单**/
    public static final Integer DOCUMENTARY_ORDER_FLAG=2;
    /**用于锁订单的redis锁**/
    public static final String FUTUREOPENORDER="FUTUREOPENORDER:";
    /**市价最大张数**/
    public static Integer MARKET_MAX_NUM=10;
    /**限价最大张数**/
    public static Integer LIMIT_MAX_NUM=30;
    /**********************************50ETF使用END*******************************************/



}
